
//lambda
public class Demo1
{
    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            System.out.println("hello thread");
        },"name");

        t.start();
        System.out.println("hello Main");
    }
}
